<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateBannedNoticeLogsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('banned_notice_logs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('user_profile_id', 12)->default('')->comment('用户账号ID');
            $table->string('type_str', 20)->default('')->comment('违规类型文本');
            $table->string('banned_str', 20)->default('')->comment('处理结果');
            $table->timestamps();
            $table->comment('封禁公告记录');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('banned_notice_logs');
    }
}
